<template>
  <div class="vue-key">
    <button @click="handle">添加</button>
    <ul>
      <li v-for="item in arr" :key="item.id">{{ item }}<input /></li>
    </ul>
  </div>
</template>

<script>
import c, { a, b } from './a';
export default {
  data() {
    return {
      arr: [1, 2, 3, 4, 5]
    };
  },
  mounted() {
    console.log(c, a, b);
  },
  methods: {
    handle() {
      // this.$set(this.arr, 2, 100);
      this.arr[5] = 100;
      console.log(this.arr);
    }
  }
};
</script>

<style></style>
